set(QUAZIP_INCLUDE 
        ${CMAKE_CURRENT_SOURCE_DIR}
        ${CMAKE_CURRENT_SOURCE_DIR}/include)
if(UNIX)
   
elseif(WIN32)
    LIST(APPEND QUAZIP_INCLUDE
        ${CMAKE_CURRENT_SOURCE_DIR}/myheader)

endif()

set(QUAZIP_SOURCES 
        ${CMAKE_CURRENT_SOURCE_DIR}/qioapi.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/JlCompress.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/quaadler32.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/quacrc32.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/quagzipfile.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/quaziodevice.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/quazip.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/quazipdir.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/quazipfile.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/quazipfileinfo.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/quazipnewinfo.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/unzip.c
        ${CMAKE_CURRENT_SOURCE_DIR}/zip.c)


target_include_directories(${PROJECT_NAME} PUBLIC ${QUAZIP_INCLUDE})

# target_link_libraries(${PROJECT_NAME}
target_sources(${PROJECT_NAME} PRIVATE ${QUAZIP_SOURCES})

add_definitions(-DQUAZIP_STATIC)